﻿<div data-role="header">
    @{
        var wsd = ViewData["wsd"] as ASoft.Base.WeatherStationData;
    }
    <label>气象数据:</label>
    @if (wsd == null)
    { 
        <label>无</label><br />
        <span class="label label-info"></span>
    }
    else
    {
        if (wsd.Id > 0)
        { 
        <label>模拟</label><br />
        }
        <label>
            光照@(wsd.光照)[KLUX],
            @(wsd.雨雪 == 0 ? "无雨雪" : "有雨雪"),
            风速@(wsd.风速)[米/秒],
            室外温度@(wsd.室外温度)[℃],
            @Asoft.Web.Models.PConvert.WindDirection(wsd.风向)风<br />
            发送时间:@wsd.时间.ToString("yyyy-MM-dd HH:mm:ss")
        </label>
    }
</div>
<br />
